import asyncio

from langchain_core.runnables import RunnableLambda


async def async_double(number) -> int:
    await asyncio.sleep(0.5)
    return number * 2


async_runnale = RunnableLambda(async_double)


async def run_async():
    inputs = [1, 2, 3, 4, 5]
    result = await async_runnale.abatch(inputs)
    print(type(result), result)


# asyncio.run()
run_async()
print("霓虹")
